package com.wanxi.dao;

import com.wanxi.model.News;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ESNewsDao extends ElasticsearchRepository<News,Long> {
    List<News> findNewsByTitle(String title);
    List<News> findNewsByContent(String content);

    List<News> findNewsByTitleAndContent(String title,String content);
}
